package com.gugee.tiktok.data.consumer.music.monitor;


import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Monitor {
    String value() default "";
    int maxTime() default 0;
    TimeUnit timeUnit() default TimeUnit.SECOND;


    enum TimeUnit {
        SECOND(1),
        MINUTE(2),
        HOUR(3);

        TimeUnit(int val) {
            this.val = val;
        }

        private int val;

        public int getVal() {
            return val;
        }
    }
}
